﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.WebControls;
using ParentChildLookup.BO;
using ParentChildLookup.Tools;

namespace ParentChildLookup.Controls
{
    public class BaseLookupField : LookupField
    {
        public ParentChildLookupBO parentChildLookup
        {
            get
            {
                string contentTypeId = this.GetContentTypeId();
                return SPTools.DeSerializeParentChildLookup(this.Web.Properties[contentTypeId]);
            }
        }
    }
}
